﻿using Domain.Entity;
using Domain.Repository;

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Application.AppService.CFFKAppService
{
    public class CFFKAppService : ICFFKAppService
    {
        private readonly ICFFKRepository cFFKRepository;

        public CFFKAppService(ICFFKRepository cFFKRepository)
        {
            this.cFFKRepository = cFFKRepository;
        }

        public Task<bool> AddCFFKAsync(CFFK cFFK)
        {
            return cFFKRepository.AddCFFKAsync(cFFK);
        }

        public Task<bool> DeleteCFFKAsync(int id)
        {
            return cFFKRepository.DeleteCFFKAsync(id);
        }

        public Task<List<CFFK>> SelectCFFKAsync()
        {
            return cFFKRepository.SelectCFFKAsync();
        }

        public Task<bool> UpdateCFFKAsync(CFFK cFFK)
        {
            return cFFKRepository.UpdateCFFKAsync(cFFK);
        }
    }
}
